package cm.ph.shopping.facade.order.entity;

import javax.persistence.Column;
import javax.persistence.Table;

import com.ph.shopping.common.core.base.BaseEntity;

@Table(name="ph_order_address")
public class PhOrderAddress extends BaseEntity {
	
	private static final long serialVersionUID = -8457371595984442106L;

    /** 会员id */
	@Column(name="memberId")
    private Long memberId;

    /** 省 */
    private Long province;

    /** 市 */
    private Long city;

    /** 区 */
    private Long area;

    /** 详细地址 */
    private String address;

    /** 联系人 */
    private String contact;

    /** 联系电话 */
    @Column(name="telPhone")
    private String telPhone;

    /** 座机号码 */
    @Column(name="phoneNo")
    private String phoneNo;

    /** 是否默认 (1是，2否)*/
    @Column(name="isdefault")
    private Integer isdefault = 2;
    
    @Column(name="positionId")
    private Long positionId;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getProvince() {
        return province;
    }

    public void setProvince(Long province) {
        this.province = province;
    }

    public Long getCity() {
        return city;
    }

    public void setCity(Long city) {
        this.city = city;
    }

    public Long getArea() {
        return area;
    }

    public void setArea(Long area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact == null ? null : contact.trim();
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone == null ? null : telPhone.trim();
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo == null ? null : phoneNo.trim();
    }

    public Integer getIsdefault() {
        return isdefault;
    }

    public void setIsdefault(Integer isdefault) {
        this.isdefault = isdefault;
    }

	public Long getPositionId() {
		return positionId;
	}

	public void setPositionId(Long positionId) {
		this.positionId = positionId;
	}

}